package com.bole.feign;


import com.bole.dto.order.TbOrderDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "BOLECAR-RECEPTION-SERVICE")
public interface OrderFeign {

    @PostMapping("/order/saveOrder")
    TbOrderDto saveOrder(@RequestParam("carId") Long carId,@RequestBody TbOrderDto order);

    @PostMapping("/order/updateOrder")
    TbOrderDto updateOrder(@RequestBody TbOrderDto order);

    @PostMapping("/order/selectById")
    TbOrderDto selectById(@RequestParam("id") Long id);
}
